import { createApp } from 'vue'
import './style.css'

// elementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// elementPlus 字体组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 路由
import router from './router/index'
// pinia
import { createPinia } from 'pinia'
import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus)
app.use(createPinia())
// 字体组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(router)
app.mount('#app')
